{% extends "blog/themes/%s/base.html" % config.theme %}
{% block title %}{{post.title|e}} - {{config.blog_name|e}}{% endblock %}
{% block seo %}<meta name="description" content="{{ post.seo|e }}" />{% endblock %}
{% block head %}
{{ compiled_css('syntax.css') }}
{{ compiled_js('syntax.js') }}
<script type="text/javascript">
	SyntaxHighlighter.config.clipboardSwf = '/media/syntax/clipboard.swf';
	SyntaxHighlighter.all();
</script>
{% endblock %}
{% block body %}
<div class="block post">
	<div class="hd">
		<h2 class="posttitle">{{post.title|escape}}</h2>
	</div>
	<div class="bd">
		<div class="entry">
			<div class="postbody entry clearfix">
{{post.body|markup|safe}}
			</div>
		</div>
	</div>
	<div class="ft">
		<p class="small">
			<em>This entry was posted on {{post.published|date("%A, %d %B, %Y")}}.</em>
		</p>
		<p class="tags">Tags: {% for tag in post.tag_pairs %}
      		<a href="/tag/{{tag[1]|e}}" rel="tag">{{tag[0]|e}}</a>{% if not loop.last %},{% endif %}
    {% endfor %}</p>
	</div>
</div>	
  	{% if config.disqus_forum %}
  	<div class="block comment">
		<div class="hd">
	    	<h3 id="comments">Comments on <em class="comment-title">{{ post.title|e }}</em></h3>
		</div>
		<div class="bd">
	    <div id="disqus_thread"></div>
	    {% if config.devel %}
	      <script type="text/javascript">
	        disqus_developer = 1;
	      </script>
	    {% endif %}
	    <script type="text/javascript" src="http://disqus.com/forums/{{config.disqus_forum}}/embed.js"></script>
	    <noscript><a href="http://disqus.com/forums/{{config.disqus_forum}}/?url=ref">View the discussion thread.</a></noscript>
	    <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
		</div>
	</div>
  	{% endif %}
{% endblock %}
